package com.tungse.eventTest.pojo;

import org.springframework.context.ApplicationEvent;

/**
 * @author Tungse
 */
public class MessageEvent<T> extends ApplicationEvent {
    private T message;
    private String code;

    public MessageEvent(T message, String code) {
        super(message);
        this.message = message;
        this.code = code;
    }

    public T getMessage() {
        return message;
    }

    public void setMessage(T message) {
        this.message = message;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }
}
